<?php

	session_start();
	$_SESSION['username'] = $_POST['username'];

	include("Connection.php");

	$username = $_POST['username'];
	$password = $_POST['password'];
	$query = "	INSERT INTO user (Username, Password)
				VALUES ('$username', '$password');
	";
	$result = mysql_query($query);
	
	if(!$result){
		die("Can't execute".mysql_error());
	}
	mysql_close($link);
	header("Location: https://academic-php.cc.gatech.edu/groups/cs4400_Group_7/PersonalInformation.php");
?>
